there is no
Type
operator
Summary
Evaluates to false if the specified object, file, or folder, or process exists, true otherwise.
Syntax
there is no {<object> | file <filePath> | folder <folderPath> | process <procName>}
Description
Use the there is no operator to make sure an object or file does not yet exist before creating it, or that a program is not already running before launching it.
The there is no operator is the logical inverse of the there is a operator. When one is true, the other is false.
The there is no operator is implemented internally as a function, and therefore has lower precedence than other operators.
Parameters
Name | Type | Description |
---|---|---|
object | Any object reference. | |
filePath | The filePath specifies the name and location of a file you want to check. If you specify a name but not a location, LiveCode looks for the file in the defaultFolder. | |
folderPath | The folderPath specifies the name and location of a folder you want to check. If you specify a name but not a location, LiveCode looks for the folder in the defaultFolder. | |
procName | The name of any process that LiveCode started. |
Examples
there is no group "Cranky"
if there is no player 1 then create player
put (there is not a folder "Temp") into safeToCreate
Related
control structure: function
function: openProcesses, exists
glossary: folder, operator, evaluate, precedence, process, object
keyword: file
operator: there is a
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile